
export const formData = {
    getItemUrl: 'admin/getItemById/',
    updateUrl: 'admin/updateAction/',
    createUrl: 'admin/createAdmin/',
    formKey: 'admin',
    updateFieldList: [
        { formType: 'Record', showName: '角色', key: 'role', width: 5, required: true, label: 'name', value: 'key' },
        { formType: 'Input', showName: '用户名', key: 'username', width: 5, required: true },
        { formType: 'Input', showName: '手机号', key: 'phone', width: 5 },
        { formType: 'Input', showName: '昵称', key: 'nickname', width: 5 },
        { formType: 'Input', showName: '真实姓名', key: 'realname', width: 5 },
        { formType: 'Switch', showName: '状态', key: 'status', width: 5 }
    ],
    detailFieldList: [
        { formType: 'Record', showName: '角色', key: 'role', width: 5, relatedModel: 'roleModel', relatedKey: 'name' },
        { formType: 'Input', showName: '用户名', key: 'username', width: 5 },
        { formType: 'Input', showName: '手机号', key: 'phone', width: 5 },
        { formType: 'Input', showName: '昵称', key: 'nickname', width: 5 },
        { formType: 'Input', showName: '真实姓名', key: 'realname', width: 5 },
        {
            showName: '创建时间',
            key: 'createTime',
            formType: 'DatePicker',
            width: 5,
            type: 'datetime',
            format: 'yyyy-MM-dd',
            valueFormat: 'yyyy-MM-dd'
        }
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '2', label: "异常"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
